package com.jiaofu.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@ToString
@TableName("tb_persons")
public class Person {
    private Integer id;
    private String username;
    private String password;
    //注意导包org.springframework.format.*,如果还有‘T’，还要设置.yml
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date createdate;
    private String creator;
    private Integer infoid;
}
